package com.joysuch.wwyt.mh.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Author ZhaoQiuWei
 * @Date 2022/5/25 15:20
 */
@Data
public class MhMajorHazardPlanVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "计划名称")
    private String planName;

    @ApiModelProperty(value = "检查人员类型:0主要负责人,1技术负责人,2操作负责人")
    private Integer checkUserType;

    @ApiModelProperty(value = "危险源id")
    private Long majorHazardId;

    @ApiModelProperty(value = "危险源名称")
    private String majorHazardName;

    @ApiModelProperty(value = "周期类型:0周检查 1季度检查")
    private Integer cycleType;

    @ApiModelProperty(value = "循环类型:0周期内循环,1单次")
    private Integer loopType;

    @ApiModelProperty(value = "周期数据年:季度单次确定哪一年,周确定哪一年")
    private Integer cycleYear;

    @ApiModelProperty(value = "周期数据年:周单次确定哪一月")
    private Integer cycleMonth;

    @ApiModelProperty(value = "周期数据:周单次->存本年选中的周 ;周循环->存本年月份集合;季度单次->存选中的季度;季度循环->存选中年分集合")
    private List<Integer> cycleData;

    @ApiModelProperty(value = "任务时间(描述)")
    private String taskTimeDesc;

    @ApiModelProperty(value = "提前提醒天数")
    private Integer reminderDays;

    @ApiModelProperty(value = "执行人员集合")
    private List<SimpleSelectListBean> entourageIds;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "制定人员id")
    private Long formulateUserId;
    private String formulateUserName;

    @ApiModelProperty(value = "制定部门id")
    private Long formulateDepartId;
    private String formulateDepartName;

    @ApiModelProperty(value = "制定日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date formulateDate;

    private List<MhMajorHazardPlanItemVO> itemVos;
}

